import request from "@/utils/request";
import type {loginParams, loginResponseData, userResponseData} from "./model"


enum API {
  login = "/admin/acl/index/login",
  userInfo = "/admin/acl/index/info",
  userLogOut = "/admin/acl/index/logout",
}
//用户登录
export const reqLogin = (data: loginParams) => request.post<any,loginResponseData>(API.login, data);
//获取用户名头像信息
export const reqUserInfo = () => request.get<any,userResponseData>(API.userInfo);
//用户退出登录
export const reqUserLogOut = () => request.post(API.userLogOut)
